package org.jeecg.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * description: SysRole <br>
 * date: 2024/3/7 23:12 <br>
 * author: ASUS <br>
 * version: 1.0 <br>
 */
/**
 * 角色表
 */
@Data
@TableName(value = "sys_role")
public class SysRole implements Serializable {
    /**
     * ID
     */
    @TableId(value = "role_id", type = IdType.INPUT)
    private Long roleId;

    /**
     * 名称
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 角色级别
     */
    @TableField(value = "`level`")
    private Integer level;

    /**
     * 描述
     */
    @TableField(value = "description")
    private String description;

    /**
     * 数据权限
     */
    @TableField(value = "data_scope")
    private String dataScope;

    /**
     * 创建者
     */
    @TableField(value = "create_by")
    private String createBy;

    /**
     * 更新者
     */
    @TableField(value = "update_by")
    private String updateBy;

    /**
     * 创建日期
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    private static final long serialVersionUID = 1L;
}